package com.fanix5.javamvvm.ui.main;


import android.view.View;

import androidx.annotation.NonNull;
import androidx.lifecycle.Observer;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.listener.OnItemClickListener;
import com.fanix5.javamvvm.BR;
import com.fanix5.javamvvm.Ext.CustomViewExt;
import com.fanix5.javamvvm.R;
import com.fanix5.javamvvm.adapter.DoctorListAdapter;
import com.fanix5.javamvvm.base.MvvmBaseFragment;
import com.fanix5.javamvvm.bean.DoctorBean;
import com.fanix5.javamvvm.bean.ListDataUiState;
import com.fanix5.javamvvm.databinding.FragmentHomeBinding;
import com.fanix5.javamvvm.ui.home.DoctorListActivity;
import com.fanix5.javamvvm.utils.StatusBarUtil;
import com.fanix5.javamvvm.utils.ToastUtil;
import com.fanix5.javamvvm.viewmodel.request.RequestDoctorListViewModel;
import com.fanix5.javamvvm.viewmodel.state.HomeFragmentViewModel;
import com.fanix5.javamvvm.widget.DefineLoadMoreView;
import com.kingja.loadsir.callback.Callback;
import com.kingja.loadsir.core.LoadService;
import com.kingja.loadsir.core.LoadSir;
import com.orhanobut.logger.Logger;
import com.yanzhenjie.recyclerview.SwipeRecyclerView;

import java.util.List;

public class HomeFragment extends MvvmBaseFragment<FragmentHomeBinding, HomeFragmentViewModel> {




    public static HomeFragment getInstance() {
        HomeFragment fragment = new HomeFragment();
        return fragment;
    }


    @Override
    protected int getLayoutId() {
        return R.layout.fragment_home;
    }

    @Override
    protected void initView() {
        StatusBarUtil.getInstance().setBar(getActivity(), mDatabind.statusBar, false);
    }

    @Override
    protected void initViewObservable() {

    }


    @Override
    protected void initListener() {


    }

    @Override
    protected void onFragmentFirstVisible() {
        super.onFragmentFirstVisible();
        mViewModel.getBannerList();
    }

    @Override
    protected void initData() {

    }

    @Override
    protected int initVariableId() {
        return BR.viewModel;
    }

}
